package ru.autofan.logic;

import java.util.Map;

public class ServiceLocator {

	private Map<Class, BasicService> services;
	
	@SuppressWarnings("unchecked")
	public <T> T  getService(Class<T> clazz) {
		return (T) services.get(clazz);
	}

	public void setServices(Map<Class, BasicService> services) {
		this.services = services;
	}
	
}
